<template>
<button class="btn btn-primary" @click="getAll">测试</button>
</template>

<script>
    import {getLevel} from "../../api/api";

    export default {
        name: "remove",
        methods: {
            getAll: function () {
                getLevel().then((response)=>{
                    console.log("get", response);
                }).catch(function (error) {
                    console.log(error);
                });
            }
        },
    }
</script>

<style scoped>

</style>
